package com.nkym.wypan.model.context.fileinfo;/*
 * @ClassName ChunkUploadContext
 * @Desc TODO
 * @Author 19637
 * @Date 2023/6/11 21:19
 * @Version 1.0
 */

import lombok.Data;
import org.springframework.web.multipart.MultipartFile;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.InputStream;

@Data
public class ChunkUploadContext {
    /**
     * 分片编号
     */

    private Integer chunkNumber;
    /**
     * 总分片大小
     */
    private Integer totalChunks;
    /**
     * 唯一标识符
     */
    private String identifier;
    /**
     * 文件流
     */
    private InputStream inputStream;
    /**
     * 文件总大小
     */
    private Long fileSize;
    /**
     * 分片大小
     */
    private Long chunkFileSize;
    /**
     * 上传用户
     */
    private Long userId;
}
